* Replication file for "The Determinants of Uncertainty in International Relations." International Studies Quarterly.
* Jeffrey M. Kaplow, William & Mary, jkaplow@wm.edu
* Erik Gartzke, University of California San Diego, egartzke@ucsd.edu

****
* Model 1, Retrospective Uncertainty, all estimates (Table 1)
*
use "retrodat.dta", clear
xtset ccode year
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w, i(ccode) re vce(cluster ccode)

* Substantive effects (Figure 2, row 1)
xtreg retro_frc retro_frc_lag first_pers rgdppc hasnuke tdriv ally midslast5dum polity2, i(ccode) fe vce(cl ccode)
margins, at(first_pers=(.00004(.047996).48)) atmeans
margins, at(rgdppc=(.022096(.6320185)6.322395)) atmeans
margins, at(polity2=(-.10(.02).10)) atmeans

* Robustness checks
* Including coder-assessed uncertainty
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_bw coder_frc_any_w, i(ccode) re vce(cluster ccode)


****
* Model 2, Retrospective Uncertainty, over-estimates (Table 1)
*
use "overdat.dta", clear
xtset ccode year
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w, i(ccode) re vce(cluster ccode)

* Substantive effects (Figure 2, row 2)
xtreg retro_frc retro_frc_lag first_pers rgdppc hasnuke tdriv ally midslast5dum polity2, i(ccode) fe vce(cluster ccode)
margins, at(first_pers=(.00004(.047996).48)) atmeans
margins, at(rgdppc=(.0022096(.6320185)6.322395)) atmeans
margins, at(polity2=(-.10(.02).10)) atmeans

* Robustness checks
* Including coder-assessed uncertainty
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_bw coder_frc_any_w, i(ccode) re vce(cluster ccode)
* Including NATO membership 
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w NATO_bw NATO_w, i(ccode) re vce(cluster ccode)


****
* Model 3, Retrospective Uncertainty, under-estimates (Table 1)
*
use "underdat.dta", clear
xtset ccode year
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w, i(ccode) re vce(cluster ccode)

* Substantive effects (Figure 2, row 3)
xtreg retro_frc retro_frc_lag first_pers rgdppc hasnuke tdriv ally midslast5dum polity2, i(ccode) fe vce(cluster ccode)
margins, at(first_pers=(.00004(.047996).48)) atmeans
margins, at(rgdppc=(.0022096(.6320185)6.322395)) atmeans
margins, at(polity2=(-.10(.02).10)) atmeans

* Robustness checks
* Including coder-assessed uncertainty
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_bw coder_frc_any_w, i(ccode) re vce(cluster ccode)
* Including in the model the Polity score at the time of reassessment
xtreg retro_frc retro_frc_lag_bw retro_frc_lag_w first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w polity2_ryear_bw polity2_ryear_w, i(ccode) re vce(cluster ccode)


****
* Model 4, Coder-Assessed Uncertainty (Table 2)
*
use "coderdat.dta", clear
xtset ccode year
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)

* Substantive effects (Population Means)
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=(.00009862069 .3380187)) atmeans post
lincom _b[2._at] - _b[1bn._at]

xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(polity2_w=(-.140625 .1346429)) atmeans post
lincom _b[2._at] - _b[1bn._at]

xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(ally_w=(-.9375 .9655172)) atmeans post
lincom _b[2._at] - _b[1bn._at]

xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(midslast5dum_w=(-.96875 .9375)) atmeans post
lincom _b[2._at] - _b[1bn._at]

xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(hasnuke_w=(-.4516129 .875)) atmeans post
lincom _b[2._at] - _b[1bn._at]

* Substantive effects (High Probability Means) (Figure 3)
* Between-country effects
*first_pers
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=(.0000986 .1060) first_pers_w=-0.00326 rgdppc_bw=0.0748 rgdppc_w=-0.00669 hasnuke_bw=0.0373 hasnuke_w=0.00718 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

* rgdppc
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=(0.0044 0.3874) rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*hasnuke
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=(0 0.4682) hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*polity2
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=(-.1 .1) polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*tdriv
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=(0 1) tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*ally
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=(0 1) ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*midslast5dum
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=(0 1) midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

* Within-country effects
* first_pers
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=(-0.0317 0.0317) rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

* rgdppc
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=(-0.3415 0.3415) hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

* hasnuke
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=(-0.1474 0.1474) tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*polity2
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=(-0.0854 0.0854) coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*tdriv
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=(-0.4850 0.4850) ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

* ally
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=(-0.4968 0.4968) midslast5dum_bw=0.6036 midslast5dum_w=0.0529 polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]

*midslast5dum
xtlogit coder_frc_any first_pers_bw first_pers_w rgdppc_bw rgdppc_w hasnuke_bw hasnuke_w tdriv_bw tdriv_w ally_bw ally_w midslast5dum_bw midslast5dum_w polity2_bw polity2_w coder_frc_any_years_bw coder_frc_any_years_w coder_frc_any_years2_bw coder_frc_any_years2_w coder_frc_any_years3_bw coder_frc_any_years3_w, i(ccode) re vce(cluster ccode)
margins, at(first_pers_bw=0.0194 first_pers_w=-0.0033 rgdppc_bw=0.0748 rgdppc_w=-0.0067 hasnuke_bw=0.0373 hasnuke_w=0.0072 tdriv_bw=0.4269 tdriv_w=-0.0194 ally_bw=0.5599 ally_w=0.0785 midslast5dum_bw=0.6036 midslast5dum_w=(-0.7728 0.7728) polity2_bw=-0.0282 polity2_w=0.0193 coder_frc_any_years_bw=12.6566 coder_frc_any_years_w=-0.7942 coder_frc_any_years2_bw=260.5808 coder_frc_any_years2_w=89.1238 coder_frc_any_years3_bw=6613.246 coder_frc_any_years3_w=5191.128) post
lincom _b[2._at] - _b[1bn._at]
